package com.qianfeng.openapi.search.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/29
 * @Time: 上午10:36
 */
public interface SearchService {

    public  boolean createIndex();

    public  boolean delIndex();

    public void addData(String json);

    /**
     * 求api平均调用时间
     * apiName:jingdong.product.info      jingdong.product.delete
     * platformRepTime  调用api花费的时间
     * @param startTime
     * @param endTime
     * @return
     * @throws IOException
     */
    public Map<String, Integer> statAvg(long startTime, long endTime) throws IOException;

    public long count(String params) throws IOException;

    public List<Map> search(String searchParams) throws IOException;





}
